速報APP / 工具 / RepoExplorer MVVM

RepoExplorer MVVM

價格:免費

更新日期:2018-11-15

檔案大小:2.5M

目前版本:1.01

版本需求:Android 4.4 以上版本

官方網站:https://giant2turtle.wordpress.com/

Email:giant2turtle@gmail.com

RepoExplorer MVVM(圖1)-速報App

GitHub client for android built using MVVM design pattern, reactive programming with LiveData, repository pattern, Room Persistence Library.

RepoExplorer MVVM(圖2)-速報App

Features: Pagination, caching search results and option to add bookmarks.

RepoExplorer MVVM(圖3)-速報App

Code is packaged by feature. Data package contains local database model classes, web service and repository wich is used as a single source of truth.

RepoExplorer MVVM(圖4)-速報App

UI package contains VIEW (Activities) and VIEW MODEL (AndroidViewModel)code for each screen in the app. VIEW MODEL don't hold any references to the VIEW or the MODEL classes in data package so the code is modular and it is easy to change the screens and add features.

RepoExplorer MVVM(圖5)-速報App

LiveData is used to communicate between app layers. Any changes in the MODEL layer are propagated via LiveData to VIEW MODEL and then to the VIEW layer.

RepoExplorer MVVM(圖6)-速報App

In Utils class there is Configuretion interface in wich you can configure default search term, results per page and for how long should results be kept in local cache, before trying to update with new ones.

RepoExplorer MVVM(圖7)-速報App

Check out source code at: https://github.com/giantturtle/RepoExplorerMVVM